package com.aaa.train.controller;

import com.aaa.common.entity.ResultData;
import com.aaa.train.service.ITrainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：Mr.王
 * @date ：Created in 2020/7/30 15:19
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/train")
public class TrainController {
    @Autowired
    private ITrainService iTrainService;

    @RequestMapping("/selectTrainAll")
    public ResultData selectTrainAll(){
        return iTrainService.selectTrainAll();
    }

}
